﻿using System;
using System.Collections.Generic;
using System.Text;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace WXQ.BusinessCore
{
    /// <summary>
    /// 列表类型返回结果
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ListResult<T> where T : class, new()
    {



        /// <summary>
        /// 页索引
        /// </summary>
        public int PageIndex { get; set; } = 1;
        /// <summary>
        /// 分页大小
        /// </summary>
        public int PageSize { get; set; } = 10;
        /// <summary>
        /// 总记录数
        /// </summary>
        public int Total{get;set;}=0;

        /// <summary>
        /// 记录集合
        /// </summary>
        public List<T> Result  { get; set; } =null;

        /// <summary>
        /// 总页数
        /// </summary>
        public int PageCount { get; set; } = 0;


    }
}
